package com.monkeyk.springinaction.thymeleaf.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 2017/11/25
 *
 * @author Shengzhao Li
 */
@Controller
public class HomeController {


    @RequestMapping(value = {"/", "/home"})
    public String home(Model model) {
        model.addAttribute("properties", System.getProperties());
        return "home";
    }

}
